package com.hd.assistant.dal.dao.query.ordermining;

import java.util.List;

import com.hd.assistant.dal.dao.query.BasePagerQuery;
import com.hd.assistant.dal.dataobject.ordermining.ItemCost;

public class ItemCostQuery extends BasePagerQuery{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private List<ItemCost> itemCosts;
	private String itemId;
	private Long userId;
	private String userCats;
	private String sjbm;
	private String title;
	private String itemPic;
	private Integer hasCost;
	
	private Integer allCount;
	private Integer costCount;
	private String[] itemIds;
	private Double costRatio;
	private Integer orderby;
	
	
	public Integer getOrderby() {
		return orderby;
	}
	public void setOrderby(Integer orderby) {
		this.orderby = orderby;
	}
	public String[] getItemIds() {
		return itemIds;
	}
	public void setItemIds(String[] itemIds) {
		this.itemIds = itemIds;
	}
	public Double getCostRatio() {
		return costRatio;
	}
	public void setCostRatio(Double costRatio) {
		this.costRatio = costRatio;
	}
	public Integer getAllCount() {
		return allCount;
	}
	public void setAllCount(Integer allCount) {
		this.allCount = allCount;
	}
	public Integer getCostCount() {
		return costCount;
	}
	public void setCostCount(Integer costCount) {
		this.costCount = costCount;
	}
	public List<ItemCost> getItemCosts() {
		return itemCosts;
	}
	public void setItemCosts(List<ItemCost> itemCosts) {
		this.itemCosts = itemCosts;
	}

	public Integer getHasCost() {
		return hasCost;
	}
	public void setHasCost(Integer hasCost) {
		this.hasCost = hasCost;
	}
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUserCats() {
		return userCats;
	}
	public void setUserCats(String userCats) {
		this.userCats = userCats;
	}
	public String getSjbm() {
		return sjbm;
	}
	public void setSjbm(String sjbm) {
		this.sjbm = sjbm;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getItemPic() {
		return itemPic;
	}
	public void setItemPic(String itemPic) {
		this.itemPic = itemPic;
	}
	public int getNoCostCount(){
		if(this.allCount  == null)
			return 0;
		if(this.costCount == null)
			return 0;
		return this.allCount - this.costCount;
	}
	
	
}
